All Functions of Week 1

mutate

{dplyr}

Modify/create a column in a data frame

ifelse

{base}

Return a or b depending on the value of test

summary

{base}

Obtain summary statistics or detailed regression output

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

library

{base}

Load an R package

cut

{base}

Convert Numeric to Factor

with

{base}

evaluate expression in the context of a data frame

c

{base}

Combine values/vectors into a vector

read_dta

{haven}

Read a .dta file (Stata data)

chisq.test

{stats}

Chi-Squared test (e.g. for cross-tabulations)

ordered

{dplyr}

Create an ordered factor

setwd

{base}

Set Working Directory

The end!